Use new `kind=` syntax for libs throughout Cargo
authorAlex Crichton <alex@alexcrichton.com>
Wed, 11 Mar 2015 18:41:17 +0000 (11:41 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 26 Mar 2015 21:05:13 +0000 (14:05 -0700)
This should inadvertently fix #1401

configure
tests/test_cargo_compile_custom_build.rs

index cbb7d56e813ba65b285a73e4eb8851cd51452b20..0ab442f86453de9b98ef813e86d130b7f0fcbd01 100755 (executable)
--- a/configure
+++ b/configure
@@ -374,12 +374,12 @@ if [ ! -z "$CFG_ENABLE_NIGHTLY" ]; then
         mkdir -p .cargo
         cat > .cargo/config <<-EOF
 [target.x86_64-unknown-linux-gnu.openssl]
-rustc-flags = "-l ssl:static -l crypto:static -l dl -L /home/rustbuild/root64/lib"
+rustc-flags = "-l static=ssl -l static=crypto -l dl -L /home/rustbuild/root64/lib"
 root = "/home/rustbuild/root64"
 include = "/home/rustbuild/root64/include"
 
 [target.i686-unknown-linux-gnu.openssl]
-rustc-flags = "-l ssl:static -l crypto:static -l dl -L /home/rustbuild/root32/lib"
+rustc-flags = "-l static=ssl -l static=crypto -l dl -L /home/rustbuild/root32/lib"
 root = "/home/rustbuild/root32"
 include = "/home/rustbuild/root32/include"
 EOF
index ff10b24de475e236a91157c6cb9113f51d7ec7e0..dd7b6cee68f883019bdbf1ad4b3cbb6ada7228c5 100644 (file)
@@ -835,7 +835,7 @@ test!(output_separate_lines {
         .file("build.rs", r#"
             fn main() {
                 println!("cargo:rustc-flags=-L foo");
-                println!("cargo:rustc-flags=-l foo:static");
+                println!("cargo:rustc-flags=-l static=foo");
             }
         "#);
     assert_that(p.cargo_process("build").arg("-v"),
@@ -844,7 +844,7 @@ test!(output_separate_lines {
 {compiling} foo v0.5.0 (file://[..])
 {running} `rustc build.rs [..]`
 {running} `[..]foo-[..]build-script-build[..]`
-{running} `rustc [..] --crate-name foo [..] -L foo -l foo:static`
+{running} `rustc [..] --crate-name foo [..] -L foo -l static=foo`
 ", compiling = COMPILING, running = RUNNING)));
 });